
public class JavaEnumSwitchCaseExample
{

  public static void main(String[] args)
  {
	  String qty_uom = "intransit";
	  printTodaysThought(QTY_UOM.valueOf(qty_uom));
    
  }

  public static void printTodaysThought(QTY_UOM qtyuom)
  {
    switch (qtyuom)
    {
      case available: System.out.println("available");
      				break;
      case intransit: System.out.println("intransit");
      				break;
      case onhold: System.out.println("onhold");
      				break;
      case salvage: System.out.println("salvage");
    		  		break;
      default:        System.out.println("something");;
    }
  }
}

enum QTY_UOM
{
  available, onhold, intransit,  salvage; 
}